﻿using OA.Models.Enums;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace OA.Models.ViewModels
{

    public class ApplicationFormDetail<TEntity> where TEntity : ApplicationForm
    {
        public string NextId { get; set; }
        /// <summary>
        ///  操作类型
        /// </summary>
        public int OperationType { get; set; }
    }

    public class ApplicationFormViewModel
    {
        [DisplayName("表单编号")]
        public string Id { get; set; }
        [DisplayName("提交人")]
        public string Creator { get; set; }
        [DisplayName("表单类型")]
        public string ApplicationType { get; set; }
        [DisplayName("最后修改时间")]
        [DisplayFormat(DataFormatString = "{0: yyyy年MM月dd日 HH:mm:ss}")]
        public DateTime ModificationDate { get; set; }
        [DisplayName("表单状态")]
        public ApplicationFormState Status { get; set; }
    }


    public class ApplicationFormInsertModel
    {
        public string ApplicationId { get; set; }
        public string ApplicationType { get; set; }
        public dynamic Entity { get; set; }
        public string CreatorId { get; set; }
        public string Creator { get; set; }
    }
}
